package com.sh.bean;


/**
 * 样本类的实现
 */
public class BankMarketing_my extends MySample {
	/**
	 * 以下是数据集各列对应的字段
	 */
	private byte age;
	private byte jobAdmin;
	private byte jobBlueCollar;
	private byte jobEntrepreneur;
	private byte jobHousemaid;
	private byte jobManagement;
	private byte jobRetired;
	private byte jobSelfEmployed;
	private byte jobServices;
	private byte jobStudent;
	private byte jobTechnician;
	private byte jobUnemployed;
	private byte jobUnknown;
	private byte maritalDivorced;
	private byte maritalMarried;
	private byte maritalSingle;
	private byte maritalUnknown;
	private byte educationBasic4y;
	private byte educationBasic6y;
	private byte educationBasic9y;
	private byte educationHighSchool;
	private byte educationIlliterate;
	private byte educationProfessionalCourse;
	private byte educationUniversityDegree;
	private byte educationUnknown;
	private byte creditNo;
	private byte creditYes;
	private byte creditUnknown;
	private byte housingNo;
	private byte housingYes;
	private byte housingUnknown;
	private byte loanNo;
	private byte loanYes;
	private byte loanUnknown;
	private byte contactCellular;
	private byte contactTelephone;
	private byte contactJan;
	private byte contactFeb;
	private byte contactMar;
	private byte contactApr;
	private byte contactMay;
	private byte contactJun;
	private byte contactJul;
	private byte contactAug;
	private byte contactSep;
	private byte contactOct;
	private byte contactNov;
	private byte contactDec;
	private byte contactMon;
	private byte contactTue;
	private byte contactWed;
	private byte contactThu;
	private byte contactFri;
	private int duration;
	private byte campaign;
	private int pdays;
	private byte pdaysNever;
	private byte previous;
	private byte poutcomeFailure;
	private byte poutcomeNonexistent;
	private byte poutcomeSuccess;
	private float empVarRate;
	private float consPriceIdx;
	private float consConfIdx;
	private float euribor3m;
	private float nrEmployed;
	private String target;


	@Override
	public String toString() {
		return "BankMarketing{" +
				"age=" + age +
				", jobAdmin=" + jobAdmin +
				", jobBlueCollar=" + jobBlueCollar +
				", jobEntrepreneur=" + jobEntrepreneur +
				", jobHousemaid=" + jobHousemaid +
				", jobManagement=" + jobManagement +
				", jobRetired=" + jobRetired +
				", jobSelfEmployed=" + jobSelfEmployed +
				", jobServices=" + jobServices +
				", jobStudent=" + jobStudent +
				", jobTechnician=" + jobTechnician +
				", jobUnemployed=" + jobUnemployed +
				", jobUnknown=" + jobUnknown +
				", maritalDivorced=" + maritalDivorced +
				", maritalMarried=" + maritalMarried +
				", maritalSingle=" + maritalSingle +
				", maritalUnknown=" + maritalUnknown +
				", educationBasic4y=" + educationBasic4y +
				", educationBasic6y=" + educationBasic6y +
				", educationBasic9y=" + educationBasic9y +
				", educationHighSchool=" + educationHighSchool +
				", educationIlliterate=" + educationIlliterate +
				", educationProfessionalCourse=" + educationProfessionalCourse +
				", educationUniversityDegree=" + educationUniversityDegree +
				", educationUnknown=" + educationUnknown +
				", creditNo=" + creditNo +
				", creditYes=" + creditYes +
				", creditUnknown=" + creditUnknown +
				", housingNo=" + housingNo +
				", housingYes=" + housingYes +
				", housingUnknown=" + housingUnknown +
				", loanNo=" + loanNo +
				", loanYes=" + loanYes +
				", loanUnknown=" + loanUnknown +
				", contactCellular=" + contactCellular +
				", contactTelephone=" + contactTelephone +
				", contactJan=" + contactJan +
				", contactFeb=" + contactFeb +
				", contactMar=" + contactMar +
				", contactApr=" + contactApr +
				", contactMay=" + contactMay +
				", contactJun=" + contactJun +
				", contactJul=" + contactJul +
				", contactAug=" + contactAug +
				", contactSep=" + contactSep +
				", contactOct=" + contactOct +
				", contactNov=" + contactNov +
				", contactDec=" + contactDec +
				", contactMon=" + contactMon +
				", contactTue=" + contactTue +
				", contactWed=" + contactWed +
				", contactThu=" + contactThu +
				", contactFri=" + contactFri +
				", duration=" + duration +
				", campaign=" + campaign +
				", pdays=" + pdays +
				", pdaysNever=" + pdaysNever +
				", previous=" + previous +
				", poutcomeFailure=" + poutcomeFailure +
				", poutcomeNonexistent=" + poutcomeNonexistent +
				", poutcomeSuccess=" + poutcomeSuccess +
				", empVarRate=" + empVarRate +
				", consPriceIdx=" + consPriceIdx +
				", consConfIdx=" + consConfIdx +
				", euribor3m=" + euribor3m +
				", nrEmployed=" + nrEmployed +
				", target='" + target + '\'' +
				'}';
	}

	public void setData(String []data) throws Exception {
		if (data.length!=67) {
			throw new Exception("Wrong data length: "+data.length);
		}
		age=Byte.valueOf(data[0]);
		jobAdmin=Byte.valueOf(data[1]);
		jobBlueCollar=Byte.valueOf(data[2]);
		jobEntrepreneur=Byte.valueOf(data[3]);
		jobHousemaid=Byte.valueOf(data[4]);
		jobManagement=Byte.valueOf(data[5]);
		jobRetired=Byte.valueOf(data[6]);
		jobSelfEmployed=Byte.valueOf(data[7]);
		jobServices=Byte.valueOf(data[8]);
		jobStudent=Byte.valueOf(data[9]);
		jobTechnician=Byte.valueOf(data[10]);
		jobUnemployed=Byte.valueOf(data[11]);
		jobUnknown=Byte.valueOf(data[12]);
		maritalDivorced=Byte.valueOf(data[13]);
		maritalMarried=Byte.valueOf(data[14]);
		maritalSingle=Byte.valueOf(data[15]);
		maritalUnknown=Byte.valueOf(data[16]);
		educationBasic4y=Byte.valueOf(data[17]);
		educationBasic6y=Byte.valueOf(data[18]);
		educationBasic9y=Byte.valueOf(data[19]);
		educationHighSchool=Byte.valueOf(data[20]);
		educationIlliterate=Byte.valueOf(data[21]);
		educationProfessionalCourse=Byte.valueOf(data[22]);
		educationUniversityDegree=Byte.valueOf(data[23]);
		educationUnknown=Byte.valueOf(data[24]);
		creditNo=Byte.valueOf(data[25]);
		creditYes=Byte.valueOf(data[26]);
		creditUnknown=Byte.valueOf(data[27]);
		housingNo=Byte.valueOf(data[28]);
		housingYes=Byte.valueOf(data[29]);
		housingUnknown=Byte.valueOf(data[30]);
		loanNo=Byte.valueOf(data[31]);
		loanYes=Byte.valueOf(data[32]);
		loanUnknown=Byte.valueOf(data[33]);
		contactCellular=Byte.valueOf(data[34]);
		contactTelephone=Byte.valueOf(data[35]);
		contactJan=Byte.valueOf(data[36]);
		contactFeb=Byte.valueOf(data[37]);
		contactMar=Byte.valueOf(data[38]);
		contactApr=Byte.valueOf(data[39]);
		contactMay=Byte.valueOf(data[40]);
		contactJun=Byte.valueOf(data[41]);
		contactJul=Byte.valueOf(data[42]);
		contactAug=Byte.valueOf(data[43]);
		contactSep=Byte.valueOf(data[44]);
		contactOct=Byte.valueOf(data[45]);
		contactNov=Byte.valueOf(data[46]);
		contactDec=Byte.valueOf(data[47]);
		contactMon=Byte.valueOf(data[48]);
		contactTue=Byte.valueOf(data[49]);
		contactWed=Byte.valueOf(data[50]);
		contactThu=Byte.valueOf(data[51]);
		contactFri=Byte.valueOf(data[52]);
		duration=Integer.valueOf(data[53]);
		campaign=Byte.valueOf(data[54]);
		pdays=Integer.valueOf(data[55]);
		pdaysNever=Byte.valueOf(data[56]);
		previous=Byte.valueOf(data[57]);
		poutcomeFailure=Byte.valueOf(data[58]);
		poutcomeNonexistent=Byte.valueOf(data[59]);
		poutcomeSuccess=Byte.valueOf(data[60]);
		empVarRate=Float.valueOf(data[61]);
		consPriceIdx=Float.valueOf(data[62]);
		consConfIdx=Float.valueOf(data[63]);
		euribor3m=Float.valueOf(data[64]);
		nrEmployed=Float.valueOf(data[65]);
		target=data[66];
		
	}


	public void setAge(byte age) {
		this.age = age;
	}

	public byte getJobAdmin() {
		return jobAdmin;
	}

	public void setJobAdmin(byte jobAdmin) {
		this.jobAdmin = jobAdmin;
	}

	public byte getJobBlueCollar() {
		return jobBlueCollar;
	}

	public void setJobBlueCollar(byte jobBlueCollar) {
		this.jobBlueCollar = jobBlueCollar;
	}

	public byte getJobEntrepreneur() {
		return jobEntrepreneur;
	}

	public void setJobEntrepreneur(byte jobEntrepreneur) {
		this.jobEntrepreneur = jobEntrepreneur;
	}

	public byte getJobHousemaid() {
		return jobHousemaid;
	}

	public void setJobHousemaid(byte jobHousemaid) {
		this.jobHousemaid = jobHousemaid;
	}

	public byte getJobManagement() {
		return jobManagement;
	}

	public void setJobManagement(byte jobManagement) {
		this.jobManagement = jobManagement;
	}

	public byte getJobRetired() {
		return jobRetired;
	}

	public void setJobRetired(byte jobRetired) {
		this.jobRetired = jobRetired;
	}

	public byte getJobSelfEmployed() {
		return jobSelfEmployed;
	}

	public void setJobSelfEmployed(byte jobSelfEmployed) {
		this.jobSelfEmployed = jobSelfEmployed;
	}

	public byte getJobServices() {
		return jobServices;
	}

	public void setJobServices(byte jobServices) {
		this.jobServices = jobServices;
	}

	public byte getJobStudent() {
		return jobStudent;
	}

	public void setJobStudent(byte jobStudent) {
		this.jobStudent = jobStudent;
	}

	public byte getJobTechnician() {
		return jobTechnician;
	}

	public void setJobTechnician(byte jobTechnician) {
		this.jobTechnician = jobTechnician;
	}

	public byte getJobUnemployed() {
		return jobUnemployed;
	}

	public void setJobUnemployed(byte jobUnemployed) {
		this.jobUnemployed = jobUnemployed;
	}

	public byte getJobUnknown() {
		return jobUnknown;
	}

	public void setJobUnknown(byte jobUnknown) {
		this.jobUnknown = jobUnknown;
	}

	public byte getMaritalDivorced() {
		return maritalDivorced;
	}

	public void setMaritalDivorced(byte maritalDivorced) {
		this.maritalDivorced = maritalDivorced;
	}

	public byte getMaritalMarried() {
		return maritalMarried;
	}

	public void setMaritalMarried(byte maritalMarried) {
		this.maritalMarried = maritalMarried;
	}

	public byte getMaritalSingle() {
		return maritalSingle;
	}

	public void setMaritalSingle(byte maritalSingle) {
		this.maritalSingle = maritalSingle;
	}

	public byte getMaritalUnknown() {
		return maritalUnknown;
	}

	public void setMaritalUnknown(byte maritalUnknown) {
		this.maritalUnknown = maritalUnknown;
	}

	public byte getEducationBasic4y() {
		return educationBasic4y;
	}

	public void setEducationBasic4y(byte educationBasic4y) {
		this.educationBasic4y = educationBasic4y;
	}

	public byte getEducationBasic6y() {
		return educationBasic6y;
	}

	public void setEducationBasic6y(byte educationBasic6y) {
		this.educationBasic6y = educationBasic6y;
	}

	public byte getEducationBasic9y() {
		return educationBasic9y;
	}

	public void setEducationBasic9y(byte educationBasic9y) {
		this.educationBasic9y = educationBasic9y;
	}

	public byte getEducationHighSchool() {
		return educationHighSchool;
	}

	public void setEducationHighSchool(byte educationHighSchool) {
		this.educationHighSchool = educationHighSchool;
	}

	public byte getEducationIlliterate() {
		return educationIlliterate;
	}

	public void setEducationIlliterate(byte educationIlliterate) {
		this.educationIlliterate = educationIlliterate;
	}

	public byte getEducationProfessionalCourse() {
		return educationProfessionalCourse;
	}

	public void setEducationProfessionalCourse(byte educationProfessionalCourse) {
		this.educationProfessionalCourse = educationProfessionalCourse;
	}

	public byte getEducationUniversityDegree() {
		return educationUniversityDegree;
	}

	public void setEducationUniversityDegree(byte educationUniversityDegree) {
		this.educationUniversityDegree = educationUniversityDegree;
	}

	public byte getEducationUnknown() {
		return educationUnknown;
	}

	public void setEducationUnknown(byte educationUnknown) {
		this.educationUnknown = educationUnknown;
	}

	public byte getCreditNo() {
		return creditNo;
	}

	public void setCreditNo(byte creditNo) {
		this.creditNo = creditNo;
	}

	public byte getCreditYes() {
		return creditYes;
	}

	public void setCreditYes(byte creditYes) {
		this.creditYes = creditYes;
	}

	public byte getCreditUnknown() {
		return creditUnknown;
	}

	public void setCreditUnknown(byte creditUnknown) {
		this.creditUnknown = creditUnknown;
	}

	public byte getHousingNo() {
		return housingNo;
	}

	public void setHousingNo(byte housingNo) {
		this.housingNo = housingNo;
	}

	public byte getHousingYes() {
		return housingYes;
	}

	public void setHousingYes(byte housingYes) {
		this.housingYes = housingYes;
	}

	public byte getHousingUnknown() {
		return housingUnknown;
	}

	public void setHousingUnknown(byte housingUnknown) {
		this.housingUnknown = housingUnknown;
	}

	public byte getLoanNo() {
		return loanNo;
	}

	public void setLoanNo(byte loanNo) {
		this.loanNo = loanNo;
	}

	public byte getLoanYes() {
		return loanYes;
	}

	public void setLoanYes(byte loanYes) {
		this.loanYes = loanYes;
	}

	public byte getLoanUnknown() {
		return loanUnknown;
	}

	public void setLoanUnknown(byte loanUnknown) {
		this.loanUnknown = loanUnknown;
	}

	public byte getContactCellular() {
		return contactCellular;
	}

	public void setContactCellular(byte contactCellular) {
		this.contactCellular = contactCellular;
	}

	public byte getContactTelephone() {
		return contactTelephone;
	}

	public void setContactTelephone(byte contactTelephone) {
		this.contactTelephone = contactTelephone;
	}

	public byte getContactJan() {
		return contactJan;
	}

	public void setContactJan(byte contactJan) {
		this.contactJan = contactJan;
	}

	public byte getContactFeb() {
		return contactFeb;
	}

	public void setContactFeb(byte contactFeb) {
		this.contactFeb = contactFeb;
	}

	public byte getContactMar() {
		return contactMar;
	}

	public void setContactMar(byte contactMar) {
		this.contactMar = contactMar;
	}

	public byte getContactApr() {
		return contactApr;
	}

	public void setContactApr(byte contactApr) {
		this.contactApr = contactApr;
	}

	public byte getContactMay() {
		return contactMay;
	}

	public void setContactMay(byte contactMay) {
		this.contactMay = contactMay;
	}

	public byte getContactJun() {
		return contactJun;
	}

	public void setContactJun(byte contactJun) {
		this.contactJun = contactJun;
	}

	public byte getContactJul() {
		return contactJul;
	}

	public void setContactJul(byte contactJul) {
		this.contactJul = contactJul;
	}

	public byte getContactAug() {
		return contactAug;
	}

	public void setContactAug(byte contactAug) {
		this.contactAug = contactAug;
	}

	public byte getContactSep() {
		return contactSep;
	}

	public void setContactSep(byte contactSep) {
		this.contactSep = contactSep;
	}

	public byte getContactOct() {
		return contactOct;
	}

	public void setContactOct(byte contactOct) {
		this.contactOct = contactOct;
	}

	public byte getContactNov() {
		return contactNov;
	}

	public void setContactNov(byte contactNov) {
		this.contactNov = contactNov;
	}

	public byte getContactDec() {
		return contactDec;
	}

	public void setContactDec(byte contactDec) {
		this.contactDec = contactDec;
	}

	public byte getContactMon() {
		return contactMon;
	}

	public void setContactMon(byte contactMon) {
		this.contactMon = contactMon;
	}

	public byte getContactTue() {
		return contactTue;
	}

	public void setContactTue(byte contactTue) {
		this.contactTue = contactTue;
	}

	public byte getContactWed() {
		return contactWed;
	}

	public void setContactWed(byte contactWed) {
		this.contactWed = contactWed;
	}

	public byte getContactThu() {
		return contactThu;
	}

	public void setContactThu(byte contactThu) {
		this.contactThu = contactThu;
	}

	public byte getContactFri() {
		return contactFri;
	}

	public void setContactFri(byte contactFri) {
		this.contactFri = contactFri;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public byte getCampaign() {
		return campaign;
	}

	public void setCampaign(byte campaign) {
		this.campaign = campaign;
	}

	public int getPdays() {
		return pdays;
	}

	public void setPdays(int pdays) {
		this.pdays = pdays;
	}

	public byte getPdaysNever() {
		return pdaysNever;
	}

	public void setPdaysNever(byte pdaysNever) {
		this.pdaysNever = pdaysNever;
	}

	public byte getPrevious() {
		return previous;
	}

	public void setPrevious(byte previous) {
		this.previous = previous;
	}

	public byte getPoutcomeFailure() {
		return poutcomeFailure;
	}

	public void setPoutcomeFailure(byte poutcomeFailure) {
		this.poutcomeFailure = poutcomeFailure;
	}

	public byte getPoutcomeNonexistent() {
		return poutcomeNonexistent;
	}

	public void setPoutcomeNonexistent(byte poutcomeNonexistent) {
		this.poutcomeNonexistent = poutcomeNonexistent;
	}

	public byte getPoutcomeSuccess() {
		return poutcomeSuccess;
	}

	public void setPoutcomeSuccess(byte poutcomeSuccess) {
		this.poutcomeSuccess = poutcomeSuccess;
	}

	public float getEmpVarRate() {
		return empVarRate;
	}

	public void setEmpVarRate(float empVarRate) {
		this.empVarRate = empVarRate;
	}

	public float getConsPriceIdx() {
		return consPriceIdx;
	}

	public void setConsPriceIdx(float consPriceIdx) {
		this.consPriceIdx = consPriceIdx;
	}

	public float getConsConfIdx() {
		return consConfIdx;
	}

	public void setConsConfIdx(float consConfIdx) {
		this.consConfIdx = consConfIdx;
	}

	public float getEuribor3m() {
		return euribor3m;
	}

	public void setEuribor3m(float euribor3m) {
		this.euribor3m = euribor3m;
	}

	public float getNrEmployed() {
		return nrEmployed;
	}

	public void setNrEmployed(float nrEmployed) {
		this.nrEmployed = nrEmployed;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}


	// 对外提供拿标签的方法
	@Override
	public String getTag() {
		return target;
	}


	// 对外提供拿数据的方法
	@Override
	public double[] getExample() {
		double ret[]=new double[66];
		ret[0]=age;
		ret[1]=jobAdmin;
		ret[2]=jobBlueCollar;
		ret[3]=jobEntrepreneur;
		ret[4]=jobHousemaid;
		ret[5]=jobManagement;
		ret[6]=jobRetired;
		ret[7]=jobSelfEmployed;
		ret[8]=jobServices;
		ret[9]=jobStudent;
		ret[10]=jobTechnician;
		ret[11]=jobUnemployed;
		ret[12]=jobUnknown;
		ret[13]=maritalDivorced;
		ret[14]=maritalMarried;
		ret[15]=maritalSingle;
		ret[16]=maritalUnknown;
		ret[17]=educationBasic4y;
		ret[18]=educationBasic6y;
		ret[19]=educationBasic9y;
		ret[20]=educationHighSchool;
		ret[21]=educationIlliterate;
		ret[22]=educationProfessionalCourse;
		ret[23]=educationUniversityDegree;
		ret[24]=educationUnknown;
		ret[25]=creditNo;
		ret[26]=creditYes;
		ret[27]=creditUnknown;
		ret[28]=housingNo;
		ret[29]=housingYes;
		ret[30]=housingUnknown;
		ret[31]=loanNo;
		ret[32]=loanYes;
		ret[33]=loanUnknown;
		ret[34]=contactCellular;
		ret[35]=contactTelephone;
		ret[36]=contactJan;
		ret[37]=contactFeb;
		ret[38]=contactMar;
		ret[39]=contactApr;
		ret[40]=contactMay;
		ret[41]=contactJun;
		ret[42]=contactJul;
		ret[43]=contactAug;
		ret[44]=contactSep;
		ret[45]=contactOct;
		ret[46]=contactNov;
		ret[47]=contactDec;
		ret[48]=contactMon;
		ret[49]=contactTue;
		ret[50]=contactWed;
		ret[51]=contactThu;
		ret[52]=contactFri;
		ret[53]=duration;
		ret[54]=campaign;
		ret[55]=pdays;
		ret[56]=pdaysNever;
		ret[57]=previous;
		ret[58]=poutcomeFailure;
		ret[59]=poutcomeNonexistent;
		ret[60]=poutcomeSuccess;
		ret[61]=empVarRate;
		ret[62]=consPriceIdx;
		ret[63]=consConfIdx;
		ret[64]=euribor3m;
		ret[65]=nrEmployed;
		return ret;
	}
	
	
	
}
